#ifndef __LED_H__
#define __LED_H__

#define LED232_GREEN_RCC	  RCC_AHB1Periph_GPIOC
#define LED232_GREEN_GPIO   GPIOC
#define LED232_GREEN_PIN    (GPIO_Pin_8)

#define LED232_RED_RCC      RCC_AHB1Periph_GPIOC
#define LED232_RED_GPIO     GPIOC
#define LED232_RED_PIN      (GPIO_Pin_9)

#define LED485_GREEN_RCC    RCC_AHB1Periph_GPIOC
#define LED485_GREEN_GPIO   GPIOC
#define LED485_GREEN_PIN    (GPIO_Pin_6)

#define LED485_RED_RCC      RCC_AHB1Periph_GPIOC
#define LED485_RED_GPIO     GPIOC
#define LED485_RED_PIN     	(GPIO_Pin_7)

#define LED232_GREEN_ON() 	GPIO_SetBits(LED232_GREEN_GPIO, LED232_GREEN_PIN)
#define LED232_GREEN_OFF() 	GPIO_ResetBits(LED232_GREEN_GPIO, LED232_GREEN_PIN)
#define LED232_RED_ON() 	  GPIO_SetBits(LED232_RED_GPIO, LED232_RED_PIN)
#define LED232_RED_OFF() 	  GPIO_ResetBits(LED232_RED_GPIO, LED232_RED_PIN)

#define LED485_GREEN_ON() 	GPIO_SetBits(LED485_GREEN_GPIO, LED485_GREEN_PIN)
#define LED485_GREEN_OFF() 	GPIO_ResetBits(LED485_GREEN_GPIO, LED485_GREEN_PIN)
#define LED485_RED_ON() 	  GPIO_SetBits(LED485_RED_GPIO, LED485_RED_PIN)
#define LED485_RED_OFF() 	  GPIO_ResetBits(LED485_RED_GPIO, LED485_RED_PIN)

void led_init(void);
void led_on(void);
void led_off(void);

#endif

